import { DEFAULT_LAYOUT } from '../base';
import type { AppRouteRecordRaw } from '../types';

const Account: AppRouteRecordRaw = {
  path: '/account',
  name: 'Account',
  component: DEFAULT_LAYOUT,
  redirect: '/account/info',
  meta: {
    locale: '个人信息',
    roles: ['*'],
    icon: 'icon-user',
    hideChildrenMenu: true,
    requiresAuth: true,
    order: 7
  },
  children: [
    {
      path: 'info',
      name: 'Info',
      component: () => import('@/views/account/index.vue'),
      meta: {
        activeMenu: 'Account'
      }
    }
  ]
};

export default Account;
